package com.soda.bean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class News {

	private int newId;//新闻id
	private String newAuthor;//新闻作者
	private String newTitle;//新闻标题
	private String newTime;//更新时间
	private int newCount;//访问量
	private int newState;//是否推荐 0：不推荐 1：推荐
	private String newContent;//新闻内容
	private int newDelete;
	private  User use=new User();
	public News() {
		// TODO Auto-generated constructor stub
	}
	public News(int newId, String newAuthor, String newTitle, String newTime,
			int newCount, int newState, String newContent, int newDelete) {
		super();
		this.newId = newId;
		this.newAuthor = newAuthor;
		this.newTitle = newTitle;
		this.newTime = newTime;
		this.newCount = newCount;
		this.newState = newState;
		this.newContent = newContent;
		this.newDelete = newDelete;
	}
	
	public News(int newId, String newAuthor, String newTitle, String newTime,
			int newCount, int newState, String newContent, int newDelete,
			User use) {
		super();
		this.newId = newId;
		this.newAuthor = newAuthor;
		this.newTitle = newTitle;
		this.newTime = newTime;
		this.newCount = newCount;
		this.newState = newState;
		this.newContent = newContent;
		this.newDelete = newDelete;
		this.use = use;
	}
	
	public User getUse() {
		return use;
	}
	public void setUse(User use) {
		this.use = use;
	}
	public int getNewId() {
		return newId;
	}
	public void setNewId(int newId) {
		this.newId = newId;
	}
	public String getNewAuthor() {
		return newAuthor;
	}
	public void setNewAuthor(String newAuthor) {
		this.newAuthor = newAuthor;
	}
	public String getNewTitle() {
		return newTitle;
	}
	public void setNewTitle(String newTitle) {
		this.newTitle = newTitle;
	}
	public String getNewTime() {
		return newTime;
	}
	public void setNewTime(String newTime) {
		this.newTime = newTime;
	}
	public int getNewCount() {
		return newCount;
	}
	public void setNewCount(int newCount) {
		this.newCount = newCount;
	}
	public int getNewState() {
		return newState;
	}
	public void setNewState(int newState) {
		this.newState = newState;
	}
	public String getNewContent() {
		return newContent;
	}
	public void setNewContent(String newContent) {
		this.newContent = newContent;
	}
	public int getNewDelete() {
		return newDelete;
	}
	public void setNewDelete(int newDelete) {
		this.newDelete = newDelete;
	}
	
	
 
	
	
}
